package auth

import (
	"github.com/astaxie/beego/orm"

	"eccgateway/pkg/db/auth"
)

func GetGroupByID(id int) (*auth.Group, error) {
	o := orm.NewOrm()
	group, err := auth.GetGroupByID(o, id)
	if err != nil {
		return nil, err
	}
	return &group, nil
}
